package p4;

/**
 * @author krystal
 * @date 2022/11/9 22:31
 */
public class Demo1 {
    public static void main(String[] args) {
        System.out.println(add(10,20));;
        System.out.println(add(12.8,19.2));
        System.out.println(add(1.45,3.14,2.34));
    }

    public static int add(int x,int y){
        return x + y;
    }

    public static double add(double x,double y){
        return x + y;
    }

    public static double add(double x,double y,double z){
        return x + y + z;
    }
}
